import { createRouter, createWebHashHistory } from "vue-router";

export default createRouter({
    history: createWebHashHistory(),
    routes: [
        {
            path: '/',
            component: () => import('@/views/home.vue'),
            redirect: {
                path: '/index',
            },
            children: [
                {
                    path: '/index',
                    component: () => import('@/views/index/index.vue')
                },
                {
                    path: '/image',
                    component: () => import('@/views/image/image.vue')
                },
                {
                    path: '/shop/goods/list',
                    component: () => import('@/views/shop_goods_list/shop_goods_list.vue')
                },
                {
                    path: 'shop/category/list',
                    component: () => import('@/views/shop_category_list/shop_category_list.vue')
                },
                {
                    path: 'shop/sku/list',
                    component: () => import('@/views/shop_sku_list/shop_sku_list.vue')
                },
                {
                    path: 'shop/type/list',
                    component: () => import('@/views/shop_type_list/shop_type_list.vue')
                },
                {
                    path: 'shop/comment/list',
                    component: () => import('@/views/shop_comment_list/shop_comment_list.vue')
                },
                {
                    path: 'order/order/list',
                    component: () => import('@/views/order_order_list/order_order_list.vue')
                },
                {
                    path: 'order/invoice/list',
                    component: () => import('@/views/order_invoice_list/order_invoice_list.vue')
                },
                {
                    path: 'order/after-sale/list',
                    component: () => import('@/views/order_after-sale_list/order_after-sale_list.vue')
                },
                {
                    path: 'user/user-list/list',
                    component: () => import('@/views/user_user-list_list/user_user-list_list.vue')
                },
                {
                    path: 'user/user-level/list',
                    component: () => import('@/views/user_user-level_list/user_user-level_list.vue')
                },
                {
                    path: 'set/base',
                    component: () => import('@/views/set_base/set_base.vue')
                },
                {
                    path: 'set/express',
                    component: () => import('@/views/set_express/set_express.vue')
                },
                {
                    path: 'set/manager',
                    component: () => import('@/views/set_manager/set_manager.vue')
                },
                {
                    path: 'set/payment',
                    component: () => import('@/views/set_payment/set_payment.vue')
                },



            ]
        },
        {
            path: '/login',
            component: () => import('@/views/login/Login.vue')
        },


    ]
})